package com.example.demon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@TableName("admin")
@Builder
@Data
public class Admin implements Serializable {
    @TableId(value = "admin_id", type = IdType.ASSIGN_ID)
    Long id;

    @TableField("admin_name")
    String username;

    @TableField("admin_passwd")
    String password;
}
